Add max_count to state record