display the actual number of bash command interpreter

Hello everybody!
I have a problem "Write script, which will display the actual number of bash command interpreter, working in the operating system." I used ps command to list all process running in the system but I don't know how to select only bash command interpreter. Pls give me some ideas.

Try:

ps <your flags>| grep -w bash| grep -v grep| wc -l
1 Like
pgrep bash|wc -l

Ok. tks so much!