added min & max _year to record_counts_by_year()