paramcount.cpp example by @jesyspa