Close
IIRC, there is no way to directly get the post count with the provided API, but the post with the currently highest id can be had with: "order:id_desc limit:1".
The post id increments by one for each new post, so this gives the upper bound for the total post count.

I'd suggest consulting the sources for the details: https://github.com/moebooru/moebooru