How many copies of my application are running?

A quick line of code for displaying how many copies of an application are running on a Linux platform:

1ps -ef | grep myapplicationname | wc -l | awk ' { print $1-1 } '