added a cool js feature that counts dom elements