a = raw.input() s = a.count("n") print s