Statistics: Bugfix for query

There was a small bug in the query for the number of items.