I'd like to count all
...i don't want it to be kept as a collection (it will be done many times and i only need the number).
That's fine, just grab the length and release the collection:
var count = $(".some-class").length;
Only the length (in
count) will be retained, not the collection.