'{username}', 'apiKey' => '{apiKey}', )); // 2. Obtain an Object Store service object from the client. $objectStoreService = $client->objectStoreService(null, '{region}'); // 3. Get the account. $account = $objectStoreService->getAccount(); // 4. Get the number of objects in the account. /** @var $accountObjectCount int */ $accountObjectCount = $account->getObjectCount();