add API requests counter (fix #15)