Daily open-door statistics

I have a sensor that detects when a door opens.
How can I make a statistic that counts how many times this door is opened each day?
Thank you!