n_match function

Count the Number of Matches for Each Element in a Vector