As Andrew posted, this is most unclear. Do you mean, perhaps, that given some set of (presumably distinct) passwords that has been assigned to the doors, how many different passwords would be able to open at least one?
If so, it rather depends what lengths of passwords were actually used. It also assumes that a match can arise anywhere in the sequence, e.g. if a given door has the password abcdef then the key abcabcdefx will open it (as well as opening door with password defx).
So, please clarify the question and post an attempt.