s=0 while 1: r=raw_input() for c in"-_": d=r.count(c);s+=d if d:print s