Fixed CountAction
BaseInstanceAction and BaseCollectionAction helper classes added