jQuery Get Name Value Method
var n = $("input[name^= 'card']").length;
Graceful Gharial
var n = $("input[name^= 'card']").length;