line counting and ex1-6