Nwa::_private_intersect: refactor optimization: removing redundant calls to count()

(cherry picked from commit f20ddae74fe8c077e15b73bb73a361fd5161d9f5)

Signed-off-by: Evan Driscoll <driscoll@cs.wisc.edu>