nrow chrData conditional