public function countWidgets($location = null, $zone = Zone::FRONTEND)
{
if ($location === null && $this->app['twig.options']['strict_variables'] === true) {
throw new \InvalidArgumentException('countwidgets() requires a location, none given');
}
return $this->app['asset.queue.widget']->countItemsInQueue($location, $zone);
}