distance profile resources count. Fixes #1651