preliminarily finish on the fly parameter counting

Where 'preliminarily' of course means I ain't done finished checkin it
yet. But it works and does stuff!