Text Substring Counter

Count occurrences and positions of a substring in text
Input
Output