Added line counter