Count the number of MySites

If you want to get the number of MySites just drop the following cmdlet ind your PowerShell console:

(get-spsite -webapplication https://my.contoso.com -limit all).count