add comment count function