code: int getAllPuCount() {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "getAllPuCount", this);
          int rtnCount = 0;
  
          synchronized (pxmlsInfo) {
              for (JPAPxmlInfo pxmlInfo : pxmlsInfo.values()) {
                  rtnCount += pxmlInfo.getPuCount();
              }
          }
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(tc, "getAllPuCount : " + rtnCount);
          return rtnCount;
      }
docs: Returns the number of persistence units in persistence.xml defined in this scope.
  
  @return Persistence unit count