title: How to count the number of occurrences of a substring in a string?
body: <p>Anybody can tell me about  how to find the number of occurrence  of substring in the given string without using the string function  . for example the string is "<strong>when the men get the hen</strong>"  and the result i expected is the substring '<strong>he</strong>' occur <strong>4</strong> times in the given string.</p>