sorry for beginning another publish,this is actually the link of these similar publish my previous question.Issue is when someone visit some publish,I wish to record that,to increment counter for your publish.But counter can also be increment for previous publish(always previous publish).Can't try to solve this.

this is actually the code which i use :

function IncrementPostCount(){
  if(is_single()){
    global $wp_query;
    $count = get_post_meta( $wp_query->post->ID, 'readnTimes', true );
    $count = empty($count) ? 1 : $count + 1;
    add_post_meta($wp_query->post->ID, 'readnTimes', $count, true) or update_post_meta($wp_query->post->ID, 'readnTimes', $count);
  }
}
add_action( 'template_redirect', 'IncrementPostCount' );

Can someone assist me to with this particular please.

This function already is available in a variety of plug ins. For instance the "Post Views" wordpress plugin