Create calculate_frequencies.pl