How To Count Multi Line Entries

How To Count Multi Line Entries

Hello,

I am trying to creaate a basic application where we will have a single container tracking no and multiple small parcel tracking numbers. To make everything faster I want to scan the tracking numbers to a multi line field but want to know how many packages I have scanned to the multi line field. 

How can I count the distinct number of packages in the multi line field?