Wordpress soft rejected - escaped

Hi all,
Can someone help me with this follow text to be escaped?

<?php $allsearch = new WP_Query("s=$s&showposts=-1"); $key = esc_html($s, 1); $count = $allsearch->post_count; **echo $count** . ' '; wp_reset_query(); ?><?php printf( esc_html__( ' Search Results found for' , 'vertigo') . ' %s', get_search_query() ); ?>

I made like:

<?php $allsearch = new WP_Query("s=$s&showposts=-1"); $key = esc_html($s, 1); $count = $allsearch->post_count; echo esc_html($count) . ' '; wp_reset_query(); ?><?php printf( esc_html__( ' Search Results found for' , 'vertigo') . ' %s', get_search_query() ); ?>

Is ok?

from
echo $count
to
echo esc_html($count)