private int countAttributes(File dataFile) {
        
        m_numberOfAttributes = 0;
        m_delimiter=",";
        
        try {
            m_fileScan = new Scanner(dataFile);
        } catch (FileNotFoundException e) {
        }
        m_lineScanner = new Scanner(m_fileScan.nextLine());
        m_lineScanner.useDelimiter(m_delimiter);
        while(m_lineScanner.hasNext()){
			m_lineScanner.next();
            m_numberOfAttributes++;
        }
        return m_numberOfAttributes;
    }