implemented users count function in user backend