more raw x12 segment parsing

count lines
split segment string
add tests