Save JS method parameter counts for use at runtime