count core function calls