Remove NMS dependency. Allow a negative limit to signify 'no limit'. Don't count dead entites. Recompile against 1.6.2.