You will have to use Regex post processor to match occurrences of question_id
. refName_gn will then give you number of occurrences of the string you are looking for.
See for details.
http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor
You can checkout this tutorial if you haven't used regex extractor before.