J&K boy invents word counting pen