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