#246. countXX

countXX

Background

Description

Count the number of "xx" in the given string. We'll say that overlapping is allowed, so "xxx" contains 2 "xx".

Format

Input

Output

Samples

abcxx
1
xxx
2
xxxx
3

Limitation

1s, 1024KiB for each test case.