Return a ViewCount for a view.

        :param include: list of objects to sideload. `Side-loading API Docs 
            <https://developer.zendesk.com/rest_api/docs/core/side_loading>`__.
        :param view: View or view id
13410
def count(self, view, include=None):
        
        return self._get(self._build_url(self.endpoint.count(id=view, include=include)))
509992
@SuppressWarnings("unchecked")
	public <V extends View> V findView(View containerView, int id) {
		return (V)containerView.findViewById(id);
	}
106528
def registeredView(viewName, location='Central'):
        
        loc = nativestring(location)
        view = XView._registry.get(loc, {}).get(viewName, None)
        if not view:
            for view in XView._registry.get(nativestring(location), {}).values():
                if view.__name__ == viewName:
                    return view
        return view
920252
def view_count_plus(slug):
        '''
        
        '''
        entry = TabWiki.update(
            view_count=TabWiki.view_count + 1,
        ).where(TabWiki.uid == slug)
        entry.execute()
995536
def add_view(self, *args, **kwargs):
        
        from .viewbox import ViewBox
        view = ViewBox(*args, **kwargs)
        return self.add_widget(view)
1338395
def views(self):
        
        if self._views:
            return self._views
        elif not self.abstract:
            return self.read_meta()._views

        raise EmptyDocumentException()
667689
def tickets(self, view, include=None):
        
        return self._get(self._build_url(self.endpoint.tickets(id=view, include=include)))
370486
def registeredViews(location='Central'):
        
        return [view for view in XView._registry.get(nativestring(location), {}).values() if not view.isViewAbstract()]
1008213
def get_view(self, view_name):
        
        return self.measure_to_view_map.get_view(view_name=view_name,
                                                 timestamp=self.time)
1201208
def view(self, *args, **kwargs):
        
        def decorator(f):
            kwargs.setdefault("view_class", self.view_class)
            return self.add_view(as_view(*args, **kwargs)(f))
        return decorator
1101177
def get_view(self, name, is_visible=True):
        """"""
        views = self.list_views(name, is_visible=is_visible)
        return views[0] if views else None
616402
def view_list(self):
        ''''''
        done = set()
        ret = []
        while len(done) != self.count():
            p = self.view_indexes(done)
            if len(p) > 0:
                ret.append(p)
        return ret
78635
def view_get(method_name):
    

    def view_get(_value, context, **_params):
        method = getattr(context["view"], method_name)
        return _get(method, context["key"], (), {})

    return view_get
592594
def get_api_root_view(self, **kwargs):
        """"""
        class API(views.APIView):
            _ignore_model_permissions = True

            def get(self, request, *args, **kwargs):
                directory_list = get_directory(request)
                result = OrderedDict()
                for group_name, url, endpoints, _ in directory_list:
                    if url:
                        result[group_name] = url
                    else:
                        group = OrderedDict()
                        for endpoint_name, url, _, _ in endpoints:
                            group[endpoint_name] = url
                        result[group_name] = group
                return Response(result)

        return API.as_view()
1368520
def load_views(self):
        """"""
        view_path = os.path.join(self.path, StatikProject.VIEWS_DIR)
        logger.debug("Loading views from: %s", view_path)
        if not os.path.isdir(view_path):
            raise MissingProjectFolderError(StatikProject.VIEWS_DIR)

        view_files = list_files(view_path, ['yml', 'yaml'])
        logger.debug("Found %d view(s) in project", len(view_files))
        views = {}
        for view_file in view_files:
            view_name = extract_filename(view_file)
            views[view_name] = StatikView(
                filename=os.path.join(view_path, view_file),
                encoding=self.config.encoding,
                name=view_name,
                models=self.models,
                template_engine=self.template_engine,
                error_context=self.error_context
            )

        return views
202904
public static long count(nitro_service service, String viewname) throws Exception{
		dnsview_gslbservice_binding obj = new dnsview_gslbservice_binding();
		obj.set_viewname(viewname);
		options option = new options();
		option.set_count(true);
		dnsview_gslbservice_binding response[] = (dnsview_gslbservice_binding[]) obj.get_resources(service,option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}
1209406
def views(model: "Model") -> list:
    
    if not isinstance(model, Model):
        raise TypeError("Expected a Model, not %r." % model)
    return model._model_views[:]