Assert how many posts the topic has over all its pages: its own post and its replies ("Viewing 15 posts - 1 through 15 (of 18 total)").
Examples
Then the topic should have 3 posts
And the topic should have 18 posts
Then the topic should have 1 post
Then the topic should have 2 posts
And the topic should have 4 posts
Pattern
Then(/^the topic should have (\d+) posts?$/, …)
Part of @webship-js/bbpress-steps (github.com/webship/bbpress-steps), a step pack for Webship-js 2.0.x.