code: int size(int namespaceId) {
      NamespaceMap nm = getNamespaceMap(namespaceId);
      if (nm == null) {
        return 0;
      }
      return nm.size();
    }
docs: Get the size of the map for given namespace
  
  @param namespaceId
  @return the number of replicas in the map