sql语句有关问题

sql语句问题
数据表
Pos_ID   iMonth   value
如何获得Pos_ID   数量(不重复的)
也就是既要count,又要第stinct

------解决方案--------------------
Select Count(*) From (Select DISTINCT Pos_ID From 数据表) a