def _calculate_number_message_batches(s3_event_message_mocks):
    """Calculates the number of message batches, i.e. the number of times
    get_messages will return some messages.
    """
    number_message_batches = (len(s3_event_message_mocks) + 1) / 2
    return number_message_batches