Implemented match function to count song match recurrences.