The com component will quickly tell you how many pages are in a tiff file, ideal for web sites that serve tiff content.
Example .asp code included
simple ASP example of usage:-
Set Obj = Server.CreateObject("TIFFPAGECOUNTCOM.CTIFFPageCount.1")
dim pages
pages = Obj.GetPages("C:yourtif.tif" )