The number vs A number

The expression the number is followed by a singular verb while the expression a number is followed by a plural verb.

Examples:

The number of people we need to hire is thirteen.

A number of people have written in about this subject.