get_comment_count ( $post_id = 0 )
- (int) $post_id Optional. Comment amount in post if > 0, else total comments blog wide.
- (array) The amount of spam, approved, awaiting moderation, and total comments.
- Introduced in WordPress: 2.0.0
- Deprecated in WordPress: —
The amount of comments in a post or total comments.
A lot like wp_count_comments(), in that they both return comment stats (albeit with different types).
The wp_count_comments() actually caches, but this function does not.