@prdataset User Guide
CLASSSIZES
[N,LABLIST] = CLASSSIZES(A)
Returns class cardinalities of the dataset A. The order of the classes is identical to the list of class labels returned in LABLIST.