added child count before adding option dropdown
Merge pull request #76 from ajstanley/7.x

added child count before adding option dropdown