Index: wp-admin/includes/class-wp-upgrader.php
===================================================================
--- wp-admin/includes/class-wp-upgrader.php	(revision 18519)
+++ wp-admin/includes/class-wp-upgrader.php	(working copy)
@@ -324,6 +324,10 @@
 		} else {
 			//Install Suceeded
 			$this->skin->feedback('process_success');
+			$updated = array();
+			if ( isset( $updating ) )
+				$updated[$updating] = 1;
+			echo '<script type="text/javascript">(window.parent || window).updateUpdateCounts(' . json_encode( wp_get_update_data($updated) ) . ');</script>';
 		}
 		$this->skin->after();
 
@@ -432,7 +436,8 @@
 					'clear_working' => true,
 					'hook_extra' => array(
 								'plugin' => $plugin
-					)
+					),
+					'updating' => 'plugins'
 				));
 
 		// Cleanup our hooks, incase something else does a upgrade on this connection.
@@ -679,7 +684,8 @@
 						'clear_working' => true,
 						'hook_extra' => array(
 											'theme' => $theme
-											)
+											),
+						'updating' => 'themes'
 						);
 
 		$this->run($options);
@@ -1073,6 +1079,7 @@
 class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
 	var $in_loop = false;
 	var $error = false;
+	var $updated = array( 'plugins' => 0, 'themes' => 0, 'wordpress' => 0 );
 
 	function __construct($args = array()) {
 		$defaults = array( 'url' => '', 'nonce' => '' );
@@ -1146,7 +1153,7 @@
 		$this->flush_output();
 	}
 
-	function after($title = '') {
+	function after($title = '', $updating = 'plugins') {
 		echo '</p></div>';
 		if ( $this->error || ! $this->result ) {
 			if ( $this->error )
@@ -1158,7 +1165,8 @@
 		}
 		if ( !empty($this->result) && !is_wp_error($this->result) ) {
 			echo '<div class="updated"><p>' . sprintf($this->upgrader->strings['skin_update_successful'], $title, 'jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').toggle();jQuery(\'span\', this).toggle(); return false;') . '</p></div>';
-			echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>';
+			$this->updated[$updating] ++;
+			echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide(); (window.parent || window).updateUpdateCounts(' . json_encode( wp_get_update_data($this->updated) ) . ');</script>';
 		}
 
 		$this->reset();
@@ -1225,7 +1233,7 @@
 	}
 
 	function after() {
-		parent::after($this->theme_info['Name']);
+		parent::after($this->theme_info['Name'], 'themes');
 	}
 	function bulk_footer() {
 		parent::bulk_footer();
@@ -1454,4 +1462,4 @@
 			$this->package = $uploads['basedir'] . '/' . $this->filename;
 		}
 	}
-}
\ No newline at end of file
+}
Index: wp-admin/update.php
===================================================================
--- wp-admin/update.php	(revision 18519)
+++ wp-admin/update.php	(working copy)
@@ -54,6 +54,7 @@
 		$title = __('Update Plugin');
 		$parent_file = 'plugins.php';
 		$submenu_file = 'plugins.php';
+		wp_enqueue_script( 'update' );
 		require_once(ABSPATH . 'wp-admin/admin-header.php');
 
 		$nonce = 'upgrade-plugin_' . $plugin;
@@ -154,6 +155,7 @@
 		$title = __('Update Theme');
 		$parent_file = 'themes.php';
 		$submenu_file = 'themes.php';
+		wp_enqueue_script( 'update' );
 		require_once(ABSPATH . 'wp-admin/admin-header.php');
 
 		$nonce = 'upgrade-theme_' . $theme;
Index: wp-includes/update.php
===================================================================
--- wp-includes/update.php	(revision 18519)
+++ wp-includes/update.php	(working copy)
@@ -287,28 +287,38 @@
  *
  * @return array
  */
-function wp_get_update_data() {
+function wp_get_update_data( $updated = array() ) {
 	$counts = array( 'plugins' => 0, 'themes' => 0, 'wordpress' => 0 );
+	$formatted = array();
 
 	if ( current_user_can( 'update_plugins' ) ) {
 		$update_plugins = get_site_transient( 'update_plugins' );
 		if ( ! empty( $update_plugins->response ) )
 			$counts['plugins'] = count( $update_plugins->response );
+		if ( ! empty( $updated['plugins'] ) && $updated['plugins'] <= $counts['plugins'] )
+			$counts['plugins'] -= $updated['plugins'];
+		$formatted['plugins'] = number_format_i18n( $counts['plugins'] );
 	}
 
 	if ( current_user_can( 'update_themes' ) ) {
 		$update_themes = get_site_transient( 'update_themes' );
 		if ( ! empty( $update_themes->response ) )
 			$counts['themes'] = count( $update_themes->response );
+		if ( ! empty( $updated['themes'] ) && $updated['themes'] <= $counts['themes'] )
+			$counts['themes'] -= $updated['themes'];
+		$formatted['themes'] = number_format_i18n( $counts['themes'] );
 	}
 
 	if ( function_exists( 'get_core_updates' ) && current_user_can( 'update_core' ) ) {
 		$update_wordpress = get_core_updates( array('dismissed' => false) );
 		if ( ! empty( $update_wordpress ) && ! in_array( $update_wordpress[0]->response, array('development', 'latest') ) && current_user_can('update_core') )
 			$counts['wordpress'] = 1;
+		if ( ! empty( $updated['wordpress'] ) )
+			$counts['wordpress'] -= $updated['wordpress'];
 	}
 
 	$counts['total'] = $counts['plugins'] + $counts['themes'] + $counts['wordpress'];
+	$formatted['total'] = number_format_i18n( $counts['total'] );
 	$update_title = array();
 	if ( $counts['wordpress'] )
 		$update_title[] = sprintf(__('%d WordPress Update'), $counts['wordpress']);
@@ -319,7 +329,7 @@
 
 	$update_title = ! empty( $update_title ) ? esc_attr( implode( ', ', $update_title ) ) : '';
 	
-	return array( 'counts' => $counts, 'title' => $update_title );
+	return array( 'counts' => $counts, 'formatted' => $formatted, 'title' => $update_title );
 }
 
 function _maybe_update_core() {
@@ -385,7 +395,7 @@
 		wp_schedule_event(time(), 'twicedaily', 'wp_update_themes');
 }
 
-if ( ! is_main_site() )
+if ( ! is_main_site() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) )
 	return;
 
 add_action( 'admin_init', '_maybe_update_core' );
Index: wp-includes/script-loader.php
===================================================================
--- wp-includes/script-loader.php	(revision 18519)
+++ wp-includes/script-loader.php	(working copy)
@@ -331,6 +331,8 @@
 			'error' => __('Error while saving the changes.')
 		) );
 
+		$scripts->add( 'update', "/wp-admin/js/update$suffix.js", array( 'jquery' ), '20110804' );
+
 		$scripts->add( 'plugin-install', "/wp-admin/js/plugin-install$suffix.js", array( 'jquery', 'thickbox' ), '20110113', 1 );
 		$scripts->add_script_data( 'plugin-install', 'plugininstallL10n', array(
 			'plugin_information' => __('Plugin Information:'),
Index: wp-admin/update-core.php
===================================================================
--- wp-admin/update-core.php	(revision 18519)
+++ wp-admin/update-core.php	(working copy)
@@ -402,6 +402,8 @@
 	$action = 'upgrade-core';
 }
 
+wp_enqueue_script( 'update' );
+
 $title = __('WordPress Updates');
 $parent_file = 'tools.php';
 
Index: wp-admin/js/update.dev.js
===================================================================
--- wp-admin/js/update.dev.js	(revision 0)
+++ wp-admin/js/update.dev.js	(revision 0)
@@ -0,0 +1,21 @@
+/**
+ * Updater JS functions
+ *
+ * @version 3.3.0
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+function updateUpdateCounts( data ) {
+	var $ = jQuery, upgradeData;
+
+	updateData = ( typeof data == 'string' ) ? $.parseJson( data ) : data;
+	
+	// @todo fix parent span class count-%d values
+	$('#ab-updates, .update-count').text( updateData.formatted.total ).parent()
+		.attr( 'title', updateData.title )
+		.addClass( 'count-' + updateData.counts.total );
+	$('.plugin-count').text( updateData.formatted.plugins ).parent()
+		.addClass( 'count-' + updateData.counts.plugins );
+}
