M121 Lab - Changing Document Shape with $project

In this lab, if you use the pipeline and match documents, then using the itcount function, you get a number 23. Considering each document corresponds to once movie, how come upon executing the validatejson1.json, the answer is different than 23

Thanks.
Apurva

The script “validateLab1.js” internally change the value 23 to something else. So the script also gets the answer 23 but it maps it to a different value.