linecount almost working
linecount working!