count num palette