Adding tally_occurrences.py v.1.0