--- a/src/model.cpp Mon Jan 30 02:41:45 2017 +0200 +++ b/src/model.cpp Mon Jan 30 14:30:55 2017 +0200 @@ -450,3 +450,8 @@ else return nullptr; } + +int countof(Model& model) +{ + return model.size(); +}