Fix potential bugs and incomplete docs

This is split from #223 to make it easier to review.
* Fixes broken `count` in `Isomorphic`.
* Removes copy-pasta in `Client`.
* Fixes incomplete type hints in PHPDocs.

Most issues found with the static code analysis in PHPStorm.