Check this out: https://developer.apple.com/library/ios/documentation/GraphicsImaging/Reference/CGPDFDocument/Reference/reference.html
There is this method:
size_t CGPDFDocumentGetNumberOfPages(CGPDFDocumentRef document)
That gives you the number of pages.
Implement it as such:
NSURL *pdfUrl = [NSURL fileURLWithPath:yourPath];
CGPDFDocumentRef document = CGPDFDocumentCreateWithURL((CFURLRef)pdfUrl);