separate flags from count in json feature output