arrays can contain commas, so count them when scanning the attribute hash values