I think it is more accurate to replace ``counts`` with ``returns``:

`nnz` returns the number of structural nonzeros ...

This method is not doing the counting.