Altered count method to use count query rather than fetching all objects and finding the length