char s[11],c[2]; main(b){for(;gets(s);puts(c))for(*c=48,b=0;b<10&&(s[b]-95+s[b+1]-95);b++)*c+=s[b]!=95;}