public static int GetNumberOfPages(RandomAccessFileOrArray s) { return TIFFDirectory.GetNumDirectories(s); }