code: public long getBlockCount() {
  
          long count = device.getBlockCount();
          try {
              flush();
          } catch (Exception e) {
              new RuntimeException(e);
          }
          return count;
      }
docs: {@inheritDoc}