Sql count transactions per hour