One-dimensional trapped atoms: critical coupling parameter and critical number of particles