Nuclear level density: Shell-model approach