get number of samples from file itself