How many seasons did the original TV series Beverly Hills 90210 run for?

How many seasons did the original TV series Beverly Hills 90210 run for?