Mains-Frequency Clock Library
Counting the pulses is child's play and doesn't need a library (hint: use an interrupt input and increment a counter). From that count you can use TimeLib.h to convert seconds since 01/01/1970 to an actual time.  Or just do simple division to convert seconds (count/50) into minutes, hours, whatever division you want.