Pass 1 bug - fixed bug where numDomainItems would get set to 0 when there were no infrequent items