Fix counter when installing package