C and Java statistics API samples

These samples show use of the statistics API for C and Java clients.