<?php use App\Services\ContentService; function sorter() { $content = new ContentService(); $pages = $content->loadAllPages(); echo(count($pages)); }