renamed total to count so that we are consistant with the side loading count term