DRY has_child_count methods and remove TODO

I created a helper method that pulls out the options and generates the correct assertion. This removes some duplicate code.