Original: Star Trek was canceled at the end of the third season, after 79 episodes were produced.
Simplified: Star Trek was finally canceled at the end of the third season, making 79 episodes in total.