Adding CountLines Method