If you have two divs both with the id of "count" then how do you expect document.getElementById("count") to know which div you want to get? ids have to unique on a page. If you need multiple instances of your arrows then you'll need a unique id for each. The simplest way is probably to add a number to the id so the first div will be "count0", then "count1" etc. Every time you add a new instance increment the number.
Next you need to change the js to accept this number
function myminus(id){
document.getElementById("count" + id).innerHTML = --counter;
if(counter<0){
counter=0
document.getElementById("count" + id).innerHTML = 0;
}
}
Any code that calls myminus needs to know its own id to pass into the function.