in reply to to find string

What have you tried? Are you aware of index? That should find your substring. And by providing an offset in combination with a loop, counting the number of occurences should be not too difficult ...