Count the number of distinct elements in the given set.
{2, 4, 6, 8, 4}
There are 4 distinct elements in the given set.
Complete the following task based on the instruction and optional input provided.### Instruction:
Count the number of distinct elements in the given set.

### Input:
{2, 4, 6, 8, 4}

### Output:
There are 4 distinct elements in the given set.