Fixed script that finds the total number of users