Counting Number Of Lines In A Shape