'count' and 'days' queries