I'm running KixTart 3.62 and your script worked fine for me. I got "3", not 21.