public int numFamilies() {
    if (hasFamilies()) {
      return this.familyMap.size();
    }
    return 0;
  }
Returns the number of families in familyMap
hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java