I would like create a UDA that takes an site URL and library name and returns a count of documents in the library.
Has anyone done this? Can anyone recommend a best approach?
Basically you just need a query list action to return all the items in the list and then a collection operation to count them.
I have attached a UDA that does this. Just enter the URL to the site e.g https://SharepointName/siteName/
and the list name and thats it.