add support for num phrases argument