// Animate the element's value from x to y:
$({ someValue: 0 }).animate({ 10000) }, {
duration: 3000,
easing: 'swing', // can be anything
step: function () { // called on every step
// Update the element's text with rounded-up value:
$('.count').text(this.someValue);
}
});