Added lineCounter-has a bug