Looking for a 2.57 script to limit bone count/weights on an armature modifier

Hi Guys,
Is there anything like this;
http://www.ogre3d.org/forums/viewtopic.php?f=8&t=64887

that works for 2.57?

Or is there a way to manually limit the bone count per vertice in blender?

Cheers