Wow, it's really true that there isn't a `getNumParameters()`. I'd be inclined to add it.