rust count occurrences of a substring 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());