select UserID,COUNT(0) From [Order] a Group By UserID
UserID (无列名)1 5 2 44 28 311 114 116 117 218 197 1