The gate count of a particular library cell corresponds with the function of the standard gate count of the NAND-gate area in the technology library. For example, if the NAND-gate cell area is specified as 23 in the technology library and the flip-flop area is defined as 138, the total gate count of the flip-flop is 138/23 or 6.
Similarly, the gate count of a design is the area of a design divided by the gate count of the NAND gate (as defined in the technology library). This number is the area of the NAND gate. To find the total gate count of the design, divide the cell area by the area of the NAND gate.