@CanIgnoreReturnValue
  public PathSubject hasLinkCount(int count) throws IOException {
    exists();

    int linkCount = (int) Files.getAttribute(actual, "unix:nlink", linkOptions);
    if (linkCount != count) {
      failWithActual("expected to have link count", count);
    }
    return this;
  }
Asserts that the file the path points to exists and has the given number of links to it. Fails
on a file system that does not support the "unix" view.
jimfs/src/test/java/com/google/common/jimfs/PathSubject.java