Functions in c3 have a fixed number of Params so param count doesn’t exist.
One solution is to just use the old function object instead of the new built in ones. Just find an old project with the function object and copy it over.
Another is to just make it with the new functions. Add the function, give it two parameters, and replace function.param(0) and function.param(1) with the parameter names instead. And instead of using function.paramcout use 2, since there are just two parameters. You can then simplify from there if you like.