while 1:print`map(raw_input,['']*11)`.count(' * ')/2