support func call and count function