Copy this code and paste it in your HTML
#!/usr/bin/perl
use strict;
use warnings;
use Date
::Calc qw(Day_of_Week
);
my $day = 1;
my $sum = 0;
for my $year (1901..2000){
for my $month (1..12){
if(Day_of_Week($year, $month, $day) == 7){ $sum++; }
}
}