nterms function

Number of nonzero terms in a spray object