Added support for child attributes
Changed count to use CountAccount api