Let G be a finite group, and \(\chi \) be an irreducible complex character of G. In this note, we define \(\textrm{zk}(G)=|\{ \chi \in \textrm{Irr}(G) \bigm |\textrm{Z}(\chi )=\textrm{Ker}(\chi ) \}|\) . We prove that \(\textrm{zk}(G)=1\) if and only if G is nilpotent, which provides a new criterion for nilpotency. We also show that G is solvable when \(\textrm{zk}(G)\leqslant 4\) and characterize non-solvable groups with \(\textrm{zk}(G)=5\) .