def countPopulation(poptable):
	"""
	Counts all indivuals in a population; can be applied to 
	a diploid, haploid, or homzygotes table
	"""
	mypoptable = poptable
	vals = mypoptable.values()
	vals2 = []
	for item in vals:
		vals2.append(item[0])
	popsum = sum(vals2)
	return popsum