The つ ending only works on cardinal numbers up to (and including) 9.
From 10 onward, the つ drops off. It can be replaced by the "counter" for the item it is that you are counting, or just -ko (個) if you need a generic "counter".
So 23 would be にじゅうさんこ.