Add a count RPC method and default to an offset of 0 for view.