NEW: adding element count definition to extractor