Counter for value 1 in the dashboard

Dear community,

I will create an singlestat in grafana, but have no experience with it.
I use the influxdb

i have this values in the database:
2019-01-09_13h22_13

i will have a counter of the value 1,

The Actuator is opening, close the underfloor heating circuit, and with the couter i would like to see how often does the actuator open.

Can someone help me to configure that, and it should also work with the custom range (only today, the last 7 days, this month …)