preliminary parametercounter implementation

more or less there. just need to integrate into other stuff