Summarize twig count and input into data file