Script to transform percentages into counts