Oh, after further reading, it doesn't have side effects. I think that's even weirder! why not just keep a count?