Count stack size for the collection quest script.