using System;
public static class Program
{
static int countDivisibles(int A, int B, int M)
// Variable to store the counter
int counter = 0;
// Running a loop from A to B and check
// if a number is divisible by M.
for (int i = A; i <= B; i++)
if (i % M == 0)
counter++;
return counter;
}
// driver program
public static void Main()
// A and B define the range, M is the dividend
int A = 2, B = 10;
// Printing the result
Console.WriteLine(countDivisibles(A, B));