ENH Added counting of oracle calls.