improved count of posts in the api_v1