HTC reports it sold last year 2 million of the Microsoft-based smartphones developed to compete with iPhone.