Finished sumOfOnes.pl - though handling enddate still missing.