$the_query = new WP_Query( $args );
while ( $the_query->have_posts() ) :
$the_query->the_post();
echo('#' . $the_query->current_post + 1); // $the_query->current_post has the index
endwhile;
$the_query = new WP_Query( $args );
while ( $the_query->have_posts() ) :
$the_query->the_post();
echo('#' . $the_query->current_post + 1); // $the_query->current_post has the index
endwhile;