Calculate number_of_years_sampled for the dataset_summary table

calc_number_of_years_sampled(dates)

## Arguments

dates (Date) Dates from the L0 source dataset encompassing the entire study duration.

## Value

(numeric) Number of survey years in which a sample was taken.