#17426 - increase counter after output