Count Mondays in a year Edit on GitHub

Your task is to write a Perl sub get_mondays_count_for_year() that return number of Mondays in a given year.

The first argument to the sub is alwasys a scalar with year. The year is a integer number in a range from 1900 to 2100. The first argument is always present and it is always valid.

The code you enter will be run in perl 5.30. The code is run with use utf8;, use strict; and use warnings;. You can use any library that is shipped with perl, but you can't use any additional libraries.