Can I count the number of elements with a specific attribute?

For example all the images with the src attribute test.gif

Edit
Report