Changed address number counter method

Now using a javascript variable instead of html to keep track of the
number of address