Email Record: Efficiently inferring the demographic history of many populations with allele count data