UAL still ownes one(747SP), but it is leased out to NASA.
The 747-400 will be around for another 30 years. Well, At least, 20 years.
Airlines like United are still getting new 747s from boeing, and they have a life span of about 30+ years. Expect to see them way into the future.