I Know this quetion has been asked quite few times already but I have a twist.
I have a below string and I wan to check the count how many times given word is repeated in the string.
String randomText = "AbDdfSwapnilswapniljsdncdsbswapnil"
How to count the word "swapnil"
is repeated?