count process in linux

[[email protected] ~]# ps -C php-fpm –no-heading | wc -l
941

[[email protected] ~]# ps -C nginx –no-heading | wc -l
14