The above fix works, but the file needs to be saved as .php not .txt for it to work.
So, copy the code for the pluggin, save it as limitposts.zip, zip it up, upload it as a pluggin and activate it. Voila!
Hope that helps, it took an hour on Google getting nowhere, then a look at how pluggins are structured to come up with this now obvios solution!