I have a bunch of date data in a mysql table like this:
2010-02-13 1:00:00, \"soma data\" 2010-02-13 1:25:00, \"soma data\" 2010-02-13 1:37:00, \"soma data\"
SELECT HOUR(datetime), COUNT(*) FROM table GROUP BY HOUR(datetime);
You will get two fields: the hour and the number of events during that hour.