count selection check added