Query->count() method should always return an integer