added function to calculate yes/no array length