messages get by start index and count