private static int getNumberOfNonProcessProcFiles() {
    File proc = new File("/proc");
    String[] procFiles = proc.list();
    int count = 0;
    if (procFiles != null) {
      for (String filename : procFiles) {
        char c = filename.charAt(0);
        if (!Character.isDigit(c)) {
          if (c == '.') {
            // see if the next char is a digit
            if (filename.length() > 1) {
              char c2 = filename.charAt(1);
              if (Character.isDigit(c2)) {
                // for bug 42091 do not count files that begin with a '.' followed by digits
                continue;
              }
            }
          }
          count++;
        }
      }
    }
    return count;
  }
Count the number of files in /proc that do not represent processes. This value is cached to
make counting the number of running process a cheap operation. The assumption is that the
contents of /proc will not change on a running system.

@return the files in /proc that do NOT match /proc/[0-9]*
geode-core/src/main/java/org/apache/geode/internal/statistics/platform/LinuxProcFsStatistics.java