fix cmd count