Display the language string for the number of comments the current post has.

Signature

get_comments_number_text( $zero = false, $one = false, $more = false )
zero
 (string) Optional. Text for no comments. Default false.
Default: false
one
 (string) Optional. Text for one comment. Default false.
Default: false
more
 (string) Optional. Text for more than one comment. Default false.
Default: false

Return

(void)

Source

function get_comments_number_text( $zero = false, $one = false, $more = false ) {
	$number = get_comments_number();

	if ( $number > 1 ) {
		$output = str_replace( '%', number_format_i18n( $number ), ( false === $more ) ? __( '% Comments' ) : $more );
	} elseif ( $number == 0 ) {
		$output = ( false === $zero ) ? __( 'No Comments' ) : $zero;
	} else { // must be one
		$output = ( false === $one ) ? __( '1 Comment' ) : $one;
	}
	/**
	 * Filter the comments count for display.
	 *
	 * @since 1.5.0
	 *
	 * @see _n()
	 *
	 * @param string $output A translatable string formatted based on whether the count
	 *                       is equal to 0, 1, or 1+.
	 * @param int    $number The number of post comments.
	 */
	return apply_filters( 'comments_number', $output, $number );
}
WP Trac GitHub

Link here