I know that I can use spy like below to track the number of times a function has been called, when I have a reference to the object on which it is a method.
j