added topcount capability