ApplicationOutput("Tags found: @", tagcount);
Yeah, the documentation isn't quite helpful as it should be for newbies, but after a while and with the help of some SDK examples you get there in the end.
As for storing tags it depends what you want to do with it, but next to AtomArray you also can use
maxon::BaseArray<BaseTag*>
maxon::HashSet<BaseTag*>
maxon::HashMap<...
it all depends what manipulations you want to do with the list.
To begin with, I mostly use BaseArray for simple lists.
Additionally, prefer to use maxon's types (Int32, UInt, ...) over the standard types (int)