Add result count to logging output.