[FEATURE] add function to count text lines