Totalcount can be zero, do not divide by then.