aei_count_samples