[Pki-devel] certificate counter improvement