Steben visits

Plugin that counts the number of views.

Get total post views:

echo steben_total_views($post->ID);

Get views of last 30 days:

echo steben_30days_views($post->ID);

Get posts, sorted by number of views:

$popular_posts = get_posts(
	array(
		'post_status' => 'publish',
		'post_type' => 'post',
		'meta_key' => 'steben_views_30', // or 'steben_views_total'
		'orderby' => 'meta_value_num',
		'order' => 'DESC'
	)
); 

foreach( $popular_posts as $post ){
	setup_postdata( $post );
	echo get_the_title($post->ID);
}

wp_reset_postdata();