Need help with running processes script

I'm doing a script with the Shell. I need that it only show the number of running processes.

Ex:
echo "There are `command` running processes"

Thnx!

Pd: Sorry the idiom. I'm spanish.

Hello.

Per our forum rules, all posts must be in English.

We do provide translation services for posts from English to a number of languages as a benefit to users. However, posts must be in English.

Please repost in English.

Thank you for your cooperation.

The UNIX and Linux Forums.

kann abgeschlossen werden sein.

http://www.unix.com/shell-programming-scripting/120647-need-help-running-processes-script.html

  • Which shell?
  • Which OS?
  • All process or just the ones you own?
  • Threads or LWPs count as processes?

This is the new thread thank you.

changed the title to the english version.

bakunin