public long getGcCount() {
    return gcCount;
  }
Returns the number of times garbage collection has occurred.

@return the number of times garbage collection has occurred
geode-core/src/main/java/org/apache/geode/management/JVMMetrics.java