Used correct admin setting to check if product count should be done on a category

Close: #1828