Added CountColumns method