How to find number of processes ?

Hi ,

I need to count all processes contains the pattren "FND"

For Example:

I was reteriving the details of all processes related to "FND" by this command

$     ps -ef | grep FND

but now I just wanna count them .

Regards
Adel

 ps -ef | grep -c '[F]ND'

hi vino ,

Thanks alot for your fast replay : )

ADEL