To display only the names and the number of users currently logged on pass the -q option to who command. When this option is used, all other options are ignored by who command. At the bottom you will get total logged on users count. The syntax is:
$ who -q
vivek root nixcraft vivek # users=4
The output in this example indicates that the user named ‘vivek’ has been logged in two times.