in reply to to find string

Start by querying the Perl FAQ, which is conveniently available from your command line:
perldoc -q count
and online: How can I count the number of occurrences of a substring within a string?