Delete Post Link

<a href="<?php echo wp_nonce_url(get_bloginfo('url') . "/wp-admin/post.php?action=delete&amp;post=" . get_the_ID() , 'delete-post_' . get_the_ID())?>">X</a>

Count posts in a category

<?php
function wt_get_category_count($input = '') {
global $wpdb;
if($input == '')
{
$category = get_the_category();
return $category[0]->category_count;
}
elseif(is_numeric($input))
{
$SQL = "SELECT $wpdb->term_taxonomy.count FROM $wpdb->terms, $wpdb->term_taxonomy WHERE $wpdb->terms.term_id=$wpdb->term_taxonomy.term_id AND $wpdb->term_taxonomy.term_id=$input";
return $wpdb->get_var($SQL);
}
else
{
$SQL = "SELECT $wpdb->term_taxonomy.count FROM $wpdb->terms, $wpdb->term_taxonomy WHERE $wpdb->terms.term_id=$wpdb->term_taxonomy.term_id AND $wpdb->terms.slug='$input'";
return $wpdb->get_var($SQL);
}
}
?>

<!-- Get current category -->
<?php echo wt_get_category_count(); ?>
<!-- Get category 1 -->
<?php echo wt_get_category_count(1); ?>
<!-- Get category 'hello-world' -->
<?php echo wt_get_category_count('hello-world'); ?>