rust count occurrences in string code example
Example: rust count occurrences of a substring
println!("{}","sea shells sea shells on the sea shore".matches("sea").count());
println!("{}","sea shells sea shells on the sea shore".matches("sea").count());