basic counter reset at midnight

Signed-off-by: Alexander Skjolden <alex@plastboks.net>