4 ms·You'd preferably use collections.Counter for this.by tgb 8y agoYou'd preferably use collections.Counter for this.