comments on script for counting changes