Added a method for fetching the number of images a user has on the server