account: use defaultdict instead of Counter Counter is not present in python <= 2.6, so replace it with defaultdict.
View Diff