created new request and response for count api. Added unit tests