Updated to increment counter and fire metric in one promise