[feature/twig] Add S_NUM_ROWS to loops in context

PHPBB3-11598