New getMessagesByCount

- faster version
- there is no guarantee of message count returning
Merge pull request #370 from stavamichal/newGetMessagesMethodByCount

New getMessagesByCount