Added count method to combined public query