According the Guns Magazine the US Army and Navy have purchased 10,576 M9 pistols (I do wonder how they come up with these exact numbers).
Beretta USA received purchase orders from the US Army and US Navy for a total of 10,576 M9 pistols (5,969 for the Army, 4,607 for the Navy). The purchase orders were issued against a multi-year contract between Beretta and the US Army, which serves as executive purchasing agent of the M9 pistol for all branches of the US Armed Forces.
So the M9 is not going anywhere in the near future.
“The Beretta M9 pistol remains the most reliable and well-tested handgun in the US military inventory, with tests resulting in an average of only one malfunction every 20,500 rounds fired.”
Apart from the special forces it is the only pistol, isn’t it?
According to wikipedia the last big order was in 2006 for 70,000 pistols.