π is an irrational number and as such, it has an infinite number of significant figures.
When numbers are written in scientific notation, then the number of digits between 1 and 10 gives the number of significant figures. Thus, the number of significant figures in 6.022×1023 is 4.