use who command
it gives a result, for example
username pts/1 2013-06-19 19:51 (ip)
You can analyze this to find out how many nonlocal people have been added and get their usernames (or there are options, see man who for more information.
shows the number of users who are not local users,
who | grep -v localhost | wc -l
source share