From the link:
This function returns zero instead of #ERROR when used like this:nnz([Subf field]) on the main form. I use it from a global module.
So, I would put that code in a standard module and instead of this on your report:
=SubformReference
you'd have
=nnz(SubformReference)