import os
import json

'''
fopen = open('result.json','r')
output = eval(fopen.read())
fopen.close()


for key in output:
    label = output[key]['label']
    if not sta.has_key(label):
        sta[label] = 1
    else:
        sta[label] = sta[label] + 1

fopen = open('result2.json','r')
output2 = eval(fopen.read())
fopen.close()

for key in output2:
    label = output2[key]['label']
    if not sta.has_key(label):
        sta[label] = 1
    else:
        sta[label] = sta[label] + 1
'''
sta = {}
fopen = open('result_das.json','r')
output = eval(fopen.read())
fopen.close()

for key in output:
    label = output[key]['label']
    if not label in sta:
        sta[label] = 1
    else:
        sta[label] = sta[label] + 1

for label in sta:
    print(label, sta[label])
