Problem in using shortened URL to tweet


I am using a tweet button with count in my website. Counts are coming fine. I am using data-url=“SHORTENED-URL” data-counturl=“FULL-URL”. When I click on tweet it shows me the shortened URL which is fine. The counter gets increased. But when I click on the counter link it goes to twitter with a search query string of the FULL-URL and shows nothing tweeted of course since everything was tweeted using SHORTENED-URL. So how to solve my problem!!!