Json-Api add scopes counter to action index json return