page 1: count - 3
page 2: count - 4
page 3: count - 2
Thanks and Regards
This will give you applied paragraph styles for textframes on a certain page n:
But grouped objects will not be included....
You might be better off by looking up the paragraphs and associated styled from app.activeDocument.stories.everyItem().textContainers, and then looking at which page each paragraph of those text frames belongs to.
Both of these hints won't find texts in table cells. Just pointing you in some kind of direction... You will find lots of advise in other threads on the forum. For example: http://forums.adobe.com/message/2717858#2717858
This might be an even better starting point: