Display post order ranking within wordpress loop

It is not straightforward to pass a variable to a template part. However, when you are in a loop, WP has a counter called current_post that you can use in this way in your template part:

global $post;
$ranking = $post->$current_post + 1; // +1 because the counter starts at 0