New getMessagesByCount

- faster version
- there is no guarantee of message count returning