Count line numbers when parsing VCD file