It seems there may be a bit of a retro-continuity error in one of my personal favorite Star Trek scenes, which I noticed just today.
Click the picture above for a YouTube video. A transcript of the pertinent bits is below, emphasis added.
SCOTTY: The Enterprise! Show me the bridge of the Enterprise, you chattering piece of...
COMPUTER: There have been five Federation ships with that name. Please specify by registry number.
SCOTTY: N, C, C, one, seven, oh, one. No bloody A, B, C, or D.
The computer is specifically stating that there have been (only) five Federation ships named Enterprise. Scotty effectively names all of the ones we'd been introduced to by the time of that episode: NCC-1701, NCC-1701-A, NCC-1701-B, NCC-1701-C, and NCC-1701-D. However, this of course omits the NX-01.
Out-of-universe, this can easily be attributed to the history of the television series. However, I'm wondering if there might also be a (possibly un-intended) in-universe explanation that allows the computer's statement to still be accurate? For example, (and I only ask because I'm not too familiar with the Enterprise series just yet) does the NX-01 Enterprise actually pre-date the existence of the United Federation of Planets?