move some counter query from controller to model articles

refactoring some scopes in article