A credit card PIN is four digits. However, you can sometimes choose to include more numbers.
For example, you can pick more than four digits as a Westpac customer, but they warn that some industries and countries only accept four-digit PINs. If you want a longer PIN to protect yourself, it might be worth changing it frequently rather than choosing a longer PIN that might limit you.