Your filter is missing a parameter for the range. Input is what you're going to be returning from the filter, so you just need to add another parameter for the actual count:
gameApp.filter('range', function() {
return function(input, count) {
for (var i=0; i<count; i++)
input.push(i);
return input;
}
});
I've made a plnkr here to help