How does linecount work?