return the number of books scanned along with user id