How to set number of labels from data source file