title: Twilio IP Messaging - get the last message index on REST API
body: <p>Using the twilio-ruby package to connect to the REST API for Twilio's IP Messaging service and attempting to compute an unread message count.</p>
  
  <p>The REST API is paginating the messages so that something like </p>
  
  <pre><code>channel.messages.list.last.index
  </code></pre>
  
  <p>Will return 49 once there are more than 50 messages in the channel.</p>
  
  <p>Is there a way to get just the last message on the channel (as seems to be possible in the android/ios SDK) to avoid paginating through all message history?</p>