Count method added