Use vector instead of unordered_map for state frequencies