Number of nonlinear constraints in a JuMP model?

In JuMP, what’s the function analogous to MathProgBase.numlinconstr(model) for getting the number of nonlinear constraints?

See https://github.com/JuliaOpt/JuMP.jl/blob/272d54bd1305889e353d8109091c0544c681bfc9/src/JuMP.jl#L191. It’s a linear function of numconstr, numlinconstr, and numquadconstr.