added script for counting complete cases