I have 4 forms divided by jQuery UI Tabs and want to count the (unsaved) form changes and display them in the Tab title.

Like an unread message count on your phone.

But how can I only add 1 for each form input and not everytime a change/keypress happens?

```
var changes = 0;

    $('#form').on('keypress', 'input', function() {
        var active = $('#tabs').tabs('option', 'active');

        changes++;

        $("#tabs ul>li a").eq(active).find('.formChanges').text('(' + changes + ')');
    });

```