Print the number of times that the string code
appears anywhere in the given string, but there's a twist. Any letter except for 'd' in code will also count, so cope
and cooe
will also satisfy the conditions.
Input Specification
The only line of input will be a single string.
Output Specification
Print the number of times code
or any other variation of the word appears in the string.
Sample Input
codexxcope
Sample Output
2
Comments