No you can't because the counter is only incremented in one branch of the if statement inside the map :)