def get_max_rows(worksheet):
    """
    Gets the number of non-empty rows of the current worksheet.

    :param worksheet: Current worksheet to manipulate.
    :return: Number of non-empty rows
    """
    return worksheet.max_row