title: java.nio.file.path: inconsistent behaviour with name count?
body: <p>While learning about the behaviour of the NIO2 API I have considered this:</p>
  
  <pre><code>Path unix = Paths.get("/");
  Path windows = Paths.get("c:\\");
  System.out.println(unix.getNameCount());
  System.out.println(windows.getNameCount());
  </code></pre>
  
  <p>... gives the output</p>
  
  <pre><code>0
  1
  </code></pre>
  
  <p>Why is that? I would expect the same result which should actually be <code>0</code> because there is no name but only a root. When I add a folder</p>
  
  <pre><code>Path unix = Paths.get("/etc");
  Path windows = Paths.get("c:\\etc");
  System.out.println(unix.getNameCount());
  System.out.println(windows.getNameCount());
  </code></pre>
  
  <p>... then I get</p>
  
  <pre><code>1
  1
  </code></pre>
  
  <p>Isn't that confusing for the Windows part?</p>
  
  <p><strong>Edit:</strong> I'm on a linux machine myself.</p>