S=raw_input() a=S.count("n") print a