Salesforce Interview Question

Possible substring count in a given string.