Counting how many times the reed sensor was at high and at what time

What have you tried so far?

Please post your code.