Change to correctly send the count of results