I think they should count and there's no denying he took them well, but it's not the same as a goal form open play.
It does massively water down the achievement of winning the golden boot.
I even had a Spurs fan friend admit Kane didn't have a great tournament, he was playing so deep, I'm not sure why.