counter of space-separated words