select Count(*) as Count,ID from Tables 
where Date<='2010-08-07 00:00:00' and Date>='2010-08-08 00:00:00'
group by ID