If Star Wars is taken to mean just the original three films, and Star Trek just the original series and the first six movies, Star Trek wins, but by a fairly slim margin.
If we're talking about the whole thing, all the series, the prequels, the cartoons, the omnipresent, all-encompassing...