How many pieces do you have left? This means something like "Of all the pieces you orginally had, how many of those are left (remain)?" The subject is "pieces."
How many pieces do you leave? This means something like "You are leaving (us) how many pieces?"