Situation: You want to know how many web applications have been created in your SharePoint Farm.
Old Method: Go to Central Administration and …
Smart Method: Use PowerShell!
Launch your Administrator: SharePoint 2010 Management Shell
Press ENTER. Presto! In current farm, I have only 1 web application SharePoint –80 and the url is http://server
It’s that simple to get started. For additional parameters, you can type get-help get-spwebapplication