Electric charge flows through a wire, which naturally has a cylindrical cross section. Suppose the charge has a current density given by J = A/r, where A is a constant and r is the distance to the wire's central axis.

How much current flows through the wire if its radius is R?