Update Tilesheet.hx

seems that count param is not using in the "flags = 0" case.