Use getContent in line counting