Hi Hardik,
I think that the reason why it is not working is because of the way you are using Dependency injection (DI).
DI can only be used by classes which are managed by containers (EJB,
servlets), i.e., it is not possible to use DI (@EJB) in your client because it is non-managed.
Morover, DI is intended to "inject" local references (those references obtained from the
java:comp/env context) so I don't think you can inject the remote reference of your CountBean.
So to get DI working I think you could try this:
1) Use as a client another EJB or a servlet
2) Define a local interface for your CountBean
Hope this helps,
Manuel