count dom elements