Try like this,
$(function () {
$('#DownloadDoc').click(function () {
$.ajax({
url: '@Url.Action("GetCount", "Controller")',
success: function (intCount) {
$("#divCount").html(intCount);
}
});
});
});
Controller
public JsonResult GetCount()
{
int intCount = 1;
return Json(intCount,JsonRequestBehavior.AllowGet);
}