public int stateCount()
    {
        return transitionsByState.size();
    }
Returns the number of states in the state machine.
@return the number of states in the state machine.
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/common/FieldPrecedenceModel.java