Periodic solutions of wave equations for asymptotically full measure sets of frequencies