Returns the total number of registered layers (visible or not).
mapLayers.count(...)
low-level parameters (such as host and auth) to be passed on to qgisremote()
host
auth
qgisremote()
An integer.