Powershell Count Objects And Write