This is a classic mistake. iin your case there is already an element from array(i.e. another list) and not an index array(not int), so
if Volume == i[2]:
counter += 1
Please be sure to check out at least the beginning of the Python lesson , because this is a very simple and fundamental material.
: (volume, Volume). i . row elem .