code: public int getCount() {
          Lock lock = this.lock.readLock();
          lock.lock();
          try {
              return this.count;
          } finally {
              lock.unlock();
          }
      }
docs: Get the number of values that have been measured.
  
  @return the count