Thanks @Gustaf Neumann for the quick reply.
I created an ad_proc as suggested by you.
My proc gets input parameters(args) from x.tcl, so I am calling my proc in x.tcl file, the return value of my proc(return $count_num) should be passed to y.tcl.
I dont know how to pass return value to y.tcl
I cannot call my proc in y.tcl, because y.tcl don't have my input arguments.
Please suggest me
Thanks