Count Pages In File Uploaded

Im trying to figure out how to upload a pdf and count the pages in said pdf, how would i go about doing this?

I wonder if document to text (ai) can check that… Give it a try! Or JavaScript column.