Fixed updateResCount to pass the appropriate arguments to getExamCodeData