function sfsi_plus_options_updater4()
{
    if (!wp_verify_nonce($_POST['nonce'], "update_plus_step4")) {
        echo json_encode(array("wrong_nonce"));
        exit;
    }
    $sfsi_plus_display_counts = isset($_POST["sfsi_plus_display_counts"]) ? $_POST["sfsi_plus_display_counts"] : 'no';
    $sfsi_plus_email_countsDisplay = isset($_POST["sfsi_plus_email_countsDisplay"]) ? $_POST["sfsi_plus_email_countsDisplay"] : 'no';
    $sfsi_plus_email_countsFrom = isset($_POST["sfsi_plus_email_countsFrom"]) ? $_POST["sfsi_plus_email_countsFrom"] : 'manual';
    $sfsi_plus_email_manualCounts = isset($_POST["sfsi_plus_email_manualCounts"]) ? trim($_POST["sfsi_plus_email_manualCounts"]) : '';
    $sfsi_plus_rss_countsDisplay = isset($_POST["sfsi_plus_rss_countsDisplay"]) ? $_POST["sfsi_plus_rss_countsDisplay"] : 'no';
    $sfsi_plus_rss_manualCounts = isset($_POST["sfsi_plus_rss_manualCounts"]) ? trim($_POST["sfsi_plus_rss_manualCounts"]) : '';
    $sfsi_plus_facebook_countsDisplay = isset($_POST["sfsi_plus_facebook_countsDisplay"]) ? $_POST["sfsi_plus_facebook_countsDisplay"] : 'no';
    $sfsi_plus_facebook_countsFrom = isset($_POST["sfsi_plus_facebook_countsFrom"]) ? $_POST["sfsi_plus_facebook_countsFrom"] : 'manual';
    $sfsi_plus_facebook_mypageCounts = isset($_POST["sfsi_plus_facebook_mypageCounts"]) ? trim($_POST["sfsi_plus_facebook_mypageCounts"]) : '';
    $sfsi_plus_facebook_manualCounts = isset($_POST["sfsi_plus_facebook_manualCounts"]) ? trim($_POST["sfsi_plus_facebook_manualCounts"]) : '';
    $sfsi_plus_facebook_PageLink = isset($_POST["sfsi_plus_facebook_PageLink"]) ? trim($_POST["sfsi_plus_facebook_PageLink"]) : '';
    $sfsi_plus_twitter_countsDisplay = isset($_POST["sfsi_plus_twitter_countsDisplay"]) ? $_POST["sfsi_plus_twitter_countsDisplay"] : 'no';
    $sfsi_plus_twitter_countsFrom = isset($_POST["sfsi_plus_twitter_countsFrom"]) ? $_POST["sfsi_plus_twitter_countsFrom"] : 'manual';
    $sfsi_plus_twitter_manualCounts = isset($_POST["sfsi_plus_twitter_manualCounts"]) ? trim($_POST["sfsi_plus_twitter_manualCounts"]) : '';
    $sfsiplus_tw_consumer_key = isset($_POST["sfsiplus_tw_consumer_key"]) ? trim($_POST["sfsiplus_tw_consumer_key"]) : '';
    $sfsiplus_tw_consumer_secret = isset($_POST["sfsiplus_tw_consumer_secret"]) ? trim($_POST["sfsiplus_tw_consumer_secret"]) : '';
    $sfsiplus_tw_oauth_access_token = isset($_POST["sfsiplus_tw_oauth_access_token"]) ? trim($_POST["sfsiplus_tw_oauth_access_token"]) : '';
    $sfsiplus_tw_oauth_access_token_secret = isset($_POST["sfsiplus_tw_oauth_access_token_secret"]) ? trim($_POST["sfsiplus_tw_oauth_access_token_secret"]) : '';
    $sfsi_plus_google_countsDisplay = isset($_POST["sfsi_plus_google_countsDisplay"]) ? $_POST["sfsi_plus_google_countsDisplay"] : 'no';
    $sfsi_plus_google_countsFrom = isset($_POST["sfsi_plus_google_countsFrom"]) ? $_POST["sfsi_plus_google_countsFrom"] : 'manual';
    $sfsi_plus_google_manualCounts = isset($_POST["sfsi_plus_google_manualCounts"]) ? trim($_POST["sfsi_plus_google_manualCounts"]) : '';
    $sfsi_plus_google_api_key = isset($_POST["sfsi_plus_google_api_key"]) ? trim($_POST["sfsi_plus_google_api_key"]) : '';
    $sfsi_plus_linkedIn_countsDisplay = isset($_POST["sfsi_plus_linkedIn_countsDisplay"]) ? $_POST["sfsi_plus_linkedIn_countsDisplay"] : 'no';
    $sfsi_plus_linkedIn_countsFrom = isset($_POST["sfsi_plus_linkedIn_countsFrom"]) ? $_POST["sfsi_plus_linkedIn_countsFrom"] : 'manual';
    $sfsi_plus_linkedIn_manualCounts = isset($_POST["sfsi_plus_linkedIn_manualCounts"]) ? trim($_POST["sfsi_plus_linkedIn_manualCounts"]) : '';
    $sfsi_plus_ln_company = isset($_POST["sfsi_plus_ln_company"]) ? trim($_POST["sfsi_plus_ln_company"]) : '';
    $sfsi_plus_ln_api_key = isset($_POST["sfsi_plus_ln_api_key"]) ? trim($_POST["sfsi_plus_ln_api_key"]) : '';
    $sfsi_plus_ln_secret_key = isset($_POST["sfsi_plus_ln_secret_key"]) ? trim($_POST["sfsi_plus_ln_secret_key"]) : '';
    $sfsi_plus_ln_oAuth_user_token = isset($_POST["sfsi_plus_ln_oAuth_user_token"]) ? trim($_POST["sfsi_plus_ln_oAuth_user_token"]) : '';
    $sfsi_plus_youtube_countsDisplay = isset($_POST["sfsi_plus_youtube_countsDisplay"]) ? $_POST["sfsi_plus_youtube_countsDisplay"] : 'no';
    $sfsi_plus_youtube_countsFrom = isset($_POST["sfsi_plus_youtube_countsFrom"]) ? $_POST["sfsi_plus_youtube_countsFrom"] : 'manual';
    $sfsi_plus_youtube_manualCounts = isset($_POST["sfsi_plus_youtube_manualCounts"]) ? $_POST["sfsi_plus_youtube_manualCounts"] : '';
    $sfsi_plus_youtube_user = isset($_POST["sfsi_plus_youtube_user"]) ? trim($_POST["sfsi_plus_youtube_user"]) : '';
    $sfsi_plus_youtube_channelId = isset($_POST["sfsi_plus_youtube_channelId"]) ? trim($_POST["sfsi_plus_youtube_channelId"]) : '';
    $sfsi_plus_pinterest_countsDisplay = isset($_POST["sfsi_plus_pinterest_countsDisplay"]) ? $_POST["sfsi_plus_pinterest_countsDisplay"] : 'no';
    $sfsi_plus_pinterest_countsFrom = isset($_POST["sfsi_plus_pinterest_countsFrom"]) ? $_POST["sfsi_plus_pinterest_countsFrom"] : 'manual';
    $sfsi_plus_pinterest_manualCounts = isset($_POST["sfsi_plus_pinterest_manualCounts"]) ? trim($_POST["sfsi_plus_pinterest_manualCounts"]) : '';
    $sfsi_plus_pinterest_user = isset($_POST["sfsi_plus_pinterest_user"]) ? trim($_POST["sfsi_plus_pinterest_user"]) : '';
    $sfsi_plus_pinterest_board = isset($_POST["sfsi_plus_pinterest_board"]) ? trim($_POST["sfsi_plus_pinterest_board"]) : '';
    $sfsi_plus_instagram_countsDisplay = isset($_POST["sfsi_plus_instagram_countsDisplay"]) ? $_POST["sfsi_plus_instagram_countsDisplay"] : 'no';
    $sfsi_plus_instagram_countsFrom = isset($_POST["sfsi_plus_instagram_countsFrom"]) ? $_POST["sfsi_plus_instagram_countsFrom"] : 'manual';
    $sfsi_plus_instagram_manualCounts = isset($_POST["sfsi_plus_instagram_manualCounts"]) ? trim($_POST["sfsi_plus_instagram_manualCounts"]) : '';
    $sfsi_plus_instagram_User = isset($_POST["sfsi_plus_instagram_User"]) ? $_POST["sfsi_plus_instagram_User"] : '';
    $sfsi_plus_shares_countsDisplay = isset($_POST["sfsi_plus_shares_countsDisplay"]) ? $_POST["sfsi_plus_shares_countsDisplay"] : 'no';
    $sfsi_plus_shares_countsFrom = isset($_POST["sfsi_plus_shares_countsFrom"]) ? $_POST["sfsi_plus_shares_countsFrom"] : 'manual';
    $sfsi_plus_shares_manualCounts = isset($_POST["sfsi_plus_shares_manualCounts"]) ? trim($_POST["sfsi_plus_shares_manualCounts"]) : '';
    $sfsi_plus_houzz_countsDisplay = isset($_POST["sfsi_plus_houzz_countsDisplay"]) ? $_POST["sfsi_plus_houzz_countsDisplay"] : 'no';
    $sfsi_plus_houzz_countsFrom = isset($_POST["sfsi_plus_houzz_countsFrom"]) ? $_POST["sfsi_plus_houzz_countsFrom"] : 'manual';
    $sfsi_plus_houzz_manualCounts = isset($_POST["sfsi_plus_houzz_manualCounts"]) ? trim($_POST["sfsi_plus_houzz_manualCounts"]) : '';
    $sfsi_plus_facebookPage_url = isset($_POST["sfsi_plus_facebookPage_url"]) ? trim($_POST["sfsi_plus_facebookPage_url"]) : '';
    $up_option4 = array('sfsi_plus_display_counts' => $sfsi_plus_display_counts, 'sfsi_plus_email_countsDisplay' => $sfsi_plus_email_countsDisplay, 'sfsi_plus_email_countsFrom' => $sfsi_plus_email_countsFrom, 'sfsi_plus_email_manualCounts' => $sfsi_plus_email_manualCounts, 'sfsi_plus_rss_countsDisplay' => $sfsi_plus_rss_countsDisplay, 'sfsi_plus_rss_manualCounts' => $sfsi_plus_rss_manualCounts, 'sfsi_plus_facebook_countsDisplay' => $sfsi_plus_facebook_countsDisplay, 'sfsi_plus_facebook_countsFrom' => $sfsi_plus_facebook_countsFrom, 'sfsi_plus_facebook_mypageCounts' => $sfsi_plus_facebook_mypageCounts, 'sfsi_plus_facebook_manualCounts' => $sfsi_plus_facebook_manualCounts, 'sfsi_plus_twitter_countsDisplay' => $sfsi_plus_twitter_countsDisplay, 'sfsi_plus_twitter_countsFrom' => $sfsi_plus_twitter_countsFrom, 'sfsi_plus_twitter_manualCounts' => $sfsi_plus_twitter_manualCounts, 'sfsiplus_tw_consumer_key' => $sfsiplus_tw_consumer_key, 'sfsiplus_tw_consumer_secret' => $sfsiplus_tw_consumer_secret, 'sfsiplus_tw_oauth_access_token' => $sfsiplus_tw_oauth_access_token, 'sfsiplus_tw_oauth_access_token_secret' => $sfsiplus_tw_oauth_access_token_secret, 'sfsi_plus_google_countsDisplay' => $sfsi_plus_google_countsDisplay, 'sfsi_plus_google_countsFrom' => $sfsi_plus_google_countsFrom, 'sfsi_plus_google_manualCounts' => $sfsi_plus_google_manualCounts, 'sfsi_plus_google_api_key' => $sfsi_plus_google_api_key, 'sfsi_plus_ln_company' => $sfsi_plus_ln_company, 'sfsi_plus_ln_api_key' => $sfsi_plus_ln_api_key, 'sfsi_plus_ln_secret_key' => $sfsi_plus_ln_secret_key, 'sfsi_plus_ln_oAuth_user_token' => $sfsi_plus_ln_oAuth_user_token, 'sfsi_plus_linkedIn_countsDisplay' => $sfsi_plus_linkedIn_countsDisplay, 'sfsi_plus_linkedIn_countsFrom' => $sfsi_plus_linkedIn_countsFrom, 'sfsi_plus_linkedIn_manualCounts' => $sfsi_plus_linkedIn_manualCounts, 'sfsi_plus_youtube_countsDisplay' => $sfsi_plus_youtube_countsDisplay, 'sfsi_plus_youtube_countsFrom' => $sfsi_plus_youtube_countsFrom, 'sfsi_plus_youtube_manualCounts' => $sfsi_plus_youtube_manualCounts, 'sfsi_plus_youtube_user' => $sfsi_plus_youtube_user, 'sfsi_plus_youtube_channelId' => $sfsi_plus_youtube_channelId, 'sfsi_plus_pinterest_countsDisplay' => $sfsi_plus_pinterest_countsDisplay, 'sfsi_plus_pinterest_countsFrom' => $sfsi_plus_pinterest_countsFrom, 'sfsi_plus_pinterest_manualCounts' => $sfsi_plus_pinterest_manualCounts, 'sfsi_plus_pinterest_user' => $sfsi_plus_pinterest_user, 'sfsi_plus_pinterest_board' => $sfsi_plus_pinterest_board, 'sfsi_plus_instagram_countsFrom' => $sfsi_plus_instagram_countsFrom, 'sfsi_plus_instagram_countsDisplay' => $sfsi_plus_instagram_countsDisplay, 'sfsi_plus_instagram_manualCounts' => $sfsi_plus_instagram_manualCounts, 'sfsi_plus_instagram_User' => $sfsi_plus_instagram_User, 'sfsi_plus_shares_countsDisplay' => $sfsi_plus_shares_countsDisplay, 'sfsi_plus_shares_countsFrom' => $sfsi_plus_shares_countsFrom, 'sfsi_plus_shares_manualCounts' => $sfsi_plus_shares_manualCounts, 'sfsi_plus_houzz_countsDisplay' => $sfsi_plus_houzz_countsDisplay, 'sfsi_plus_houzz_countsFrom' => $sfsi_plus_houzz_countsFrom, 'sfsi_plus_houzz_manualCounts' => $sfsi_plus_houzz_manualCounts);
    update_option('sfsi_plus_section4_options', serialize($up_option4));
    //$option2=unserialize(get_option('sfsi_plus_section2_options',false));
    //$option2['sfsi_plus_facebookPage_url']=$sfsi_plus_facebook_PageLink;
    //update_option('sfsi_plus_section2_options',serialize($option2));
    $new_counts = sfsi_plus_getCounts();
    header('Content-Type: application/json');
    echo json_encode(array("res" => "success", 'counts' => $new_counts));
    exit;
}
<?php

/* unserialize all saved option for  section 4 options */
$option4 = unserialize(get_option('sfsi_plus_section4_options', false));
if (!isset($option4['sfsi_plus_facebook_mypageCounts'])) {
    $option4['sfsi_plus_facebook_mypageCounts'] = '';
}
$option2 = unserialize(get_option('sfsi_plus_section2_options', false));
$counts = sfsi_plus_getCounts();
/* fetch counts for admin sections */
/* check for email icon display */
$email_image = "email.png";
if ($option2['sfsi_plus_rss_icons'] == "sfsi") {
    $email_image = "sf_arow_icn.png";
} elseif ($option2['sfsi_plus_rss_icons'] == "email") {
    $email_image = "email.png";
} else {
    $email_image = "subscribe.png";
}
$hide = "display:none;";
?>
<!-- Section 4 "Do you want to display "counts" next to your icons?" main div Start -->
<div class="tab4">
  <p>It’s a psychological fact that people like to follow other people (as explained well in Robert Cialdini’s book “<a href="http://www.amazon.com/Influence-Psychology-Persuasion-Revised-Edition/dp/006124189X" target="_blank" class="lit_txt">Influence</a>”), so when they see that your site has already a good number of Facebook likes, it’s more likely that they will subscribe/like/share your site than if it had 0. </p>
  <p>Therefore, you can select to display the count next to your main icons, for your main icons, not those next to the posts which will look like this:</p>
	<!-- sample icons --> 
	<ul class="like_icon">
        <li class="sfsiplus_rss_section"><a href="#" title="RSS"><img src="<?php 
echo SFSI_PLUS_PLUGURL;
?>
images/rss.png" alt="RSS" /></a><span>12k</span></li>