Assert how many posts the topic on screen says it has, beside the page numbers above its posts ("13 posts").
Examples
Then the topic should have 13 posts
Then the topic should have 1 post
And the topic should have 2 posts
Then the topic should have 3 posts
And the topic should have 13 posts
Pattern
Then(/^the topic should have (\d+) posts?$/, …)
Part of @webship-js/phpbb-steps (github.com/webship/phpbb-steps), a step pack for Webship-js 2.0.x.