Updated count code to use RestClient instead of ActiveResource::Base to fix issues with already parameterized links