maybe we should check for count being <= 1 ? as there is a divide by zero here.