title: Check if correct number of links appear with Rspec
body: <p>I'm re-writing tests from Test Unit into Rspec/capybara and I'm just trying to figure out the correct syntax. I want to hit the root_path and check that there is exactly one links to '/' (in the header).</p>
  
  <p>The relevant part of the old test was:</p>
  
  <pre><code>test 'layout links' do
    get root_path
    assert_select 'a[href=?]', root_path, count: 1
  end
  </code></pre>
  
  <p>I can test for the existence of the link with Rspec using:</p>
  
  <pre><code>it 'should have correct number of links' do
    visit root_path
    expect(page).to have_link('Site Name', root_path)
  end
  </code></pre>
  
  <p>and I tried adding</p>
  
  <pre><code>expect(page).to have_link('Site Name', root_path, count: 1)
  </code></pre>
  
  <p>but it will only take 0..2 arguments</p>