How to count vectors before uploading document

Hi there, i’m unsure if vector count is different for s1, p1 or p2 but i’m using s1. I would like to know how anyone found a way to get a vector count of the document before uploading to the database. Or is it by a certain number of chunks with langchain and tokens per document? I am specifically talking about the vector count when you query the pinecone stats for namespaces, it comes with the vector count with the namespace name.