Remove all elements whose data equals data from this.
data
a Queue
the data to remove
the number of elements removed from this