Fixed bug of counting articles