return the num of labels if it is a classification dataset
(&self)
source not stored for this graph (policy: none)