This sample can help you to get the total number of the printers hosted on your print Server by using PowerShell.
It is important to note that the primary limitation of the print server in this configuration is related to remote management and not the result of constraints imposed by the print server hardware or core spooler component. Specifically, when you are viewing and sorting columns in the Printers and Faxes folder, the Server may begin to experience delays if it is hosting more than 1,500 printers. You can run this script to get the total number of the printers hosted on your print Server.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery