add api for postCount