Count number of times the box opened.

The event triggers both closing and opening the box,
but it is an electric issue. The serial port opens on setup
and does not close.
Merge pull request #1 from jonatantierno/initial_version

Count number of times the box opened.