Normal crabs have a pair of pincer-shaped feet for digging holes, defending and attacking, which are called pincer feet; The other four pairs of feet are used for walking or paddling, which are called walking feet. Pliers and walkers have different functions.
So strictly speaking, a crab should have eight legs that can walk and two claws that can't walk.