llength

llength <list>

This function returns the length of an Efinity Tcl object collection.

# Return the number of cells with the format *~FF
llength [get_cells *~FF]