final elaboration task for count matches