You can count the number of documents associated with a particular library (and optionally class) as follows.
Documentation Index
Fetch the complete documentation index at: https://api.aodocs.com/llms.txt
Use this file to discover all available pages before exploring further.
libraryId is a path parameter. It is the only mandatory parameter. However, using the classId helps narrow the response to documents of a specific class you want.
classId).