Changed count methods to old for 4.1.3 deprecation