During the filing process, you will have a loop that repeats each step, or tile changed. In addition to changing the tile, add one to a variable at the same time. Your variable will keep track of the number of tiles changed.
You're basically making your own "tiles changed" counter.