Number of Arithmetic Triplets