Added get_num_examples method to TransformerDataset