use capital mysql keyword plus count primary key columns just once

Signed-off-by: Smita Kumari <kumarismita62@gmail.com>