The well-known CLR-estimate for the number of negative eigenvalues of the Schrödinger operator $-\Delta+V$ is generalized to a class of second order magnetic operators, generalizing the magnetic Schrödinger operator. The cofficients in the magnetic operators are variable, they may be nonsmooth, unbounded and some degeneration is allowed.