In some cases, you may want to know number of process working in the system. You can know it by grep -ef | grep <process name> | wc -l
Following is the example to check the total number of process for "postgres":
ps -ef | grep postgres | wc -l
Following is the example to check the total number of process for "ffmpeg":
ps -ef | grep ffmpeg | wc -l