You could host your own URL shortener that would take care of counting the clicks, then redirecting to bit.ly/whatever, emailing, etc.
For instance: http://yourls.org/
Edit: well, bit.ly seems to have a pretty nice API. Check http://dev.bitly.com/link_metrics.html#v3_link_clicks