Count method added
interfaces reduced