Add vertex counting utility