Fixed --remote-name when uploading from stdin.
collections.Counter isn't available in Python 2.6 :-(. Install backport for now.