find the number of such pieces.