export csv : count instead of len