On the number of eigenvalues of the family of operator matrices