in reply to find a string a certain number of times

$matches += () = m/\Q$a_particular_string\E/g

Repeat for each member of the array.