Basically you should go through each item in the list by checking if the position relative to the profession contains "Doctor" or "Teacher" and incrementing the respective counter. Something like this:
lista_teste = [
['Nome','Idade','Sexo','Profissão'],
['Pedro','25','Masculino','Médico'],
['José','36','Masculino','Professor'],
['Paula','47','Feminino','Policial'],
['Pedro','58','Masculino','Professor'],
['Marcos','49','Masculino','Médico'],
['Daniela','30','Feminino','Professor'],
['Heitor','21','Masculino','Médico'],
['Carlos','32','Masculino','Professor'],
['Alice','43','Feminino','Médico'],
['Ricardo','54','Masculino','Mecânico'],
['Maria','65','Feminino','Professor'],
]
medicos = 0
professores = 0
for pessoa in lista_teste[1:]:
if pessoa[3] is 'Médico':
medicos += 1
elif pessoa[3] is 'Professor':
professores +=1
print('Total de {} médico(s) e de {} Professor(es).'
.format(medicos, professores))
What for
does is iterate with each element of the flat 'test_list' from the 2nd item (the '[1:]' from the 2nd element to the end, the list starts at 0) content in the 'person' variable, which is also a list.
From there, check the 4th element of this checking the content of the 4th element, the profession, and taking care to increase 'doctors' or 'teachers' depending on the case. Notice that there are two professions that are not counted, I left them on purpose so that you can do your tests.
Of course, this is a much more didactic than practical example.