def count_gender(data_list):
    """
    Function to count the genders.
    Args:
          data_list: The data list that is doing to be iterable.
    Returns:
           List with the count values of males and females
    """

    male = 0
    female = 0

    for i in range(len(data_list)):
        if data_list[i][6] == "Male":
            male += 1

        elif data_list[i][6] == "Female":
            female += 1

    return [male, female]