Issue #2600672 by alexpott, dawehner: Core MarkupInterface implementations used in Twig templates should implement \Countable