Implemented call loop count propagation through primitives

Signed-off-by: Stefan Marr <git@stefan-marr.de>