counting year occurrences