Count switch pushis

Hi,
How i can count 12h interval switch pushes?