def get_wishes_count(manager):
    """Return count of filled wishes."""
    all_wishes = filled_wishes = 0
    if '_wishes' in manager.meta:
        meta_wishes = manager.meta['_wishes']
        for i in range(len(manager.students)):
            if meta_wishes[i] is not None:
                all_wishes += 1
                if manager.result_groups[i][0] == meta_wishes[i]:
                    filled_wishes += 1
    if 'friends_table' in manager.config:
        friends_table = manager.meta[manager.config['friends_table'][0]]
        for row in friends_table:
            all_wishes += 1
            student_one = manager.students.get_by_column(0, row[0])
            student_one = manager.students.body.index(student_one)
            student_two = manager.students.get_by_column(0, row[1])
            student_two = manager.students.body.index(student_two)
            if manager.result_groups[student_one] == manager.result_groups[
                student_two]:
                filled_wishes += 1
    return [filled_wishes, all_wishes]
