log number of pieces