title: xpath, count elements error: "Result is a NodeSet containing 1 element"
body: <p>I started to learn xpath at w3cschool. I am trying to evaluate the number of players in the game.  (so counting the screenname and the text() elements/attributes)</p>
  
  <p>Here is my example xml:</p>
  
  <pre><code>&lt;game&gt;
      &lt;info&gt;
          &lt;name&gt;My Game&lt;/name&gt;
          &lt;description&gt;A &lt;i&gt;very&lt;/i&gt; interesting game.&lt;/description&gt;
          &lt;started&gt;2012-03-01T18:00:00Z&lt;/started&gt;
          &lt;players number="2"&gt;
              &lt;screenname player="1"&gt;Alice&lt;/screenname&gt;
              &lt;screenname player="2"&gt;Bob&lt;/screenname&gt;
          &lt;/players&gt;
          &lt;rounds&gt;2&lt;/rounds&gt;
          &lt;winner player="2"/&gt;
      &lt;/info&gt;
  &lt;/game&gt;
  </code></pre>
  
  <p>the xpath query I use is:</p>
  
  <pre><code>//game/info/players[count(.//screenname/text())]
  </code></pre>
  
  <p>But I only get:</p>
  
  <pre><code>"Result is a NodeSet containing 1 element" 
  </code></pre>
  
  <p>(tool: <a href="http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm" rel="nofollow">http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm</a>)</p>
  
  <p>What causes this error?</p>