Object2Terrain error/wont work.

I named a folder ‘Editor’ and added a script,naming it Object2Terrain,and when I paste the script of it in there,this comes up.

Assets/Editor/Object2Terrain.js(61,14): BCE0005: Unknown identifier: ‘zCount’.

And theres no button in the Terrain menu,and I’m not good with Unityscript yet (im using Unityscript/Javascript) so I can’t figure it out. How do I fix this?

Hm i just tried it out myself and it worked even without the change i suggested. Are you sure you copied the entire code?