Question: "count" used in the same way in the following two sentences?

Can you count the books on your shelf?

I can count my colleagues in the opposition.
Answer: different meanings
Question: "allow" used in the same way in the following two sentences?

To allow a son to be absent.

Mandela was allowed few visitors in prison.
Answer: different meanings
Question: "care" used in the same way in the following two sentences?

He doesn't care about how / whether she comes.

I don't care what he does.
Answer: the same meaning
Question: "part" used in the same way in the following two sentences?

They resisted every effort on his part.

They analyzed the river into three parts.
Answer:
different meanings