count process in linux

[root@spkn ~]# ps -C php-fpm –no-heading | wc -l
941

[root@spkn ~]# ps -C nginx –no-heading | wc -l
14