changed the counter to a div