Added Count method in Service Class.