Each message you send or receive consist of segments. Each segment counts as 1 message credit.
A segment counted as 160 characters encoded as GSM 03.38 character set. If a message contains characters, not in GSM 03.38 character set, UC2 character set will be used and the number of segments might be higher.
For a detailed discussion regarding segment counts, you can read the following blog post from Twilio.