I just found this out. I had always thought because Dr. Who had 27 seasons that they had several hundred eps, but they have less then stargate. 173 I think.
So technically, while Dr. Who has 27 seasons and counting, the first 26 seasons averaged like 5-10 eps.
Dr. Who is the longest running, but Stargate has the most episodes for a sci-fi series in the world!