added Count method.