I'm using Kirby CMS and I need to find out how many posts I have.
My posts are gotten with
$posts = $pages->find('posts')->children();
which echos an object with 10 items (links to the posts).
It is not an array so using count() returns 1.
How can I count the items in this object like I would with an array?