A simple example of a metric that doesn't worry about updating history, and just increments a single value in response to an action. This is for apps that can simply increment by a fixed amount.
#include <QtCore/QCoreApplication>
int main(int argc, char *argv[]) {
QCoreApplication application(argc, argv);
manager->add(
"<b>%1</b> photos taken today").emptyDataString(
"No photos taken today").textDomain(APP_ID)));
metric->increment();
return 0;
}