int getLocalSize() {
    int result = distributedTypeRegistry.getLocalSize();
    if (result == 0) {
      // If this is the client, go ahead and return the number of cached types we have
      return idToType.size();
    }
    return result;
  }
Get the size of the the type registry in this local member
geode-core/src/main/java/org/apache/geode/pdx/internal/TypeRegistry.java