Add get rows number method.