windowscodecs: Reimplement TiffDecoder_GetFrameCount using TIFFNumberOfDirectories.