fix article count function

--HG--
branch : 0.9