from jutge import read_many_lines
import ast

for s in read_many_lines():
    t = ast.literal_eval(s)
    print(count(t))
