ScreenShotMovie script compiler errors

I’m trying to use this script from the wiki:
http://wiki.unity3d.com/index.php/ScreenShotMovie

but it throws errors:
-JS version throws Console error: Assets/Scripts/ScreenShotMovie.js(15,5): BCE0005: Unknown identifier: ‘count’.
-CS version shows alert when I try to add it to a game object: Can’t add script behaviour ScreenShotMovie. The scripts file name does not match the name of the class defined in the script!

What am I doing wrong?

thanks
Dave

For the C# version, make sure that the script name is ScreenShot.cs, because that’s the name of the class. They have to match.

I swear I’d done that and it didn’t help…but I tried it again, and it works! Thanks much!