Even though the B-52 is still in service, all of them were built a long time ago. Boeing was awarded a production contract back in 1951. Roll-out of the B-52B was in 1954. Production of the B-52 ended in 1962 with the B-52H, with 742 aircraft built, plus the original two prototypes.

More Info: en.wikipedia.org