query('showposts=' . $limit . '&paged=' . $paged);
$i = 0;
if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post();
$i++;
endwhile;
endif;
$count = 0;
if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post();
$count++;
?>