The element carbon has an atomic number of 6. When carbon is formed as an allotrope and takes on a diamond structure, it still retains its atomic number of 6. The atomic number of an element remains the same regardless of the specific arrangement or structure it takes on.