correct onlyCount change search mode (closes #2751)