private static int getNumberOfValues(final NodeList nodeList)
    {
        int length = 0;
        for (int i = 0; i < nodeList.getLength(); i++)
        {
            Node node = nodeList.item(i);
            if (node.getNodeType() == Node.ELEMENT_NODE)
            {
                length++;
            }
        }
        return length;
    }