added users count rpc function