adding getPendingCommentCount() method in Comment model