Add timeframe to count query test.