added counter of line and paragraph.