Count number of defrost cycle a day?

I would like to count the number of defrost cycle per day, and if longer than 10min is probably a standby, is that possible at all?