Changed count queries to only pull ResultID's instead of everything. #23