sum word freq from json input file