@Override
    public int getFieldCount()
    {
        return fields.size();
    }
Returns the message's total number of fields.
protostuff-runtime/src/main/java/io/protostuff/runtime/ArrayFieldMap.java