Added a history count to MockFunction