Replace custom angular method with ng-pluralize.