Is the word "number" used in the same way in the following two sentences?

In English the subject and the verb must agree in number.

I hope to become one of their number before I die.
different meanings