revised method to count qi's for default panel