<human>:  How many episodes of Star Trek: The Next Generation were there?
<bot>: There were 263 episodes of Star Trek: The Next Generation. The first episode aired in 1987, and the last episode aired in 1994.