Automating Pages for Mac

I'm trying to automate some repetitive tasks in Pages using Keyboard Maestro.
Is it possible for a script (ie. AppleScript) to get the number of found items when doing a Find in Pages?

Unfortunately 'find' is not apple scriptable and iterating through all of the parts of a pages document that have searchable text is difficult, but not impossible. Consider tables / cells, shapes, image captions, as well as -- of course -- body text, and you've got some work to do.

I would file a radar asking for AppleScript commands for 'find' and 'replace'

Here's more on how to file a bug report