api to get total and active posts for a course

@gwprice @jimabramson @sarina there is a requirement on api end of edx-solutions to get count of total post and active posts. I have added these apis to support that please review.