Does word "count" have the same meaning in the following two sentences?

Can you count the books on your shelf?

I can count my colleagues in the opposition.
different meanings