Ergodic actions of countable groups and finite generating partitions