Remove unused method total_sample_size