code: @Override
      public long count(final String tableName, final String familyName,
              @Nullable final XPath condition) throws IOException
      {
          logger.debug("TEPHRA Begin count");
          // VERY INEFFICIENT: to be improved!
          final Stream<Record> cur = Stream.create(new HBaseScanIterator(this, tableName,
                  familyName, condition, null, getServerFilterFlag()));
          try {
              return cur.count();
          } finally {
              cur.close();
          }
      }
docs: Gets a number of record of tableName matching condition
  
  @param tableName
  to scan
  @param condition
  to match
  @param scan
  to scan
  @throws IOException