Title: India–Pakistan relations
Content:  India and Pakistan have fought in numerous armed conflicts since their independence. There are three major wars that have taken place between the two states, namely in 1947, 1965 and the Bangladesh Liberation War in 1971. In addition to this was the unofficial Kargil War in 1999 and some border skirmishes. Major conflicts between India and Pakistan, War of1947 and War of 1965, and a small-scale Kargil War in 1999, were triggered by conflict over the border of Kashmir. While both nations have held a shaky cease-fire agreement since 2003, they continue to trade fire across the disputed area. Both nations blame the other for breaking the cease-fire agreement, claiming that they are firing in retaliation for attacks. On both sides of the disputed border, an increase in territorial skirmishes that started in late 2016 and escalated into 2018 killed hundreds of civilians and made thousand homeless.
Title: List of wars involving Pakistan
Content:  Since its establishment in 1947, Pakistan has been involved in numerous armed conflicts both locally and around the world. The main focus of its military operations have both historically and currently been on neighbouring India—against whom Pakistan has fought four major wars in addition to commonly-recurring border skirmishes and standoffs. The two nations have had a hostile and turbulent relationship since their independence from the United Kingdom and subsequent war over the Himalayan region of Jammu and Kashmir. Both India and Pakistan claim Kashmir in its entirety but have not exercised control over the entire region, which remains divided and contested between the two states by the Line of Control. The Kashmir conflict has seen extensive—albeit unsuccessful—intervention and mediation 
Title: Indo-Pakistani Confederation
Content:  Dominion of Pakistan) sparked a large-scale war between the two neighbouring countries. India and Pakistan have, since their independence, engaged in four armed conflicts against each other (1947, 1965, 1971, 1999), all of them stemming from their disputes in Kashmir with the exception of the war in 1971. However, some diplomatic efforts have succeeded in promoting bilateral trade and sports events between the two nations as well as permitting Indians and Pakistanis to peacefully cross the border and visit through services provided by the Samjhauta Express and the Delhi-Lahore binational bus route. The 1972 Shimla Agreement and subsequent bilateral accords have bound both nations to seek a peaceful solution to the Kashmir conflict while promoting trade and economic cooperation.
Title: History of India (1947–present)
Content:  ambitions for India, Canada and France aided India in the development of nuclear power stations for electricity. India also negotiated an agreement in 1960 with Pakistan on the just use of the waters of seven rivers shared by the countries. Nehru had visited Pakistan in 1953, but owing to political turmoil in Pakistan, no headway was made on the Kashmir dispute. India has fought a total of four wars/military conflicts with its rival nation Pakistan, two in this period. In the Indo-Pakistani War of 1947, fought over the disputed territory of Kashmir, Pakistan captured one-third of Kashmir (which India claims as its territory), and India captured three-fifths (which Pakistan claims as its territory). In the Indo-Pakistani War of 1965, India attacked Pakistan on all fronts by crossing the international border 
Title: History of India (1947–present)
Content:  The Indo-Pakistani War of 1947–1948 was fought between India and Pakistan over the princely state of Kashmir and Jammu from 1947 to 1948. It was the first of four Indo-Pakistan Wars fought between the two newly independent nations. Pakistan precipitated the war a few weeks after independence by launching tribal lashkar (militia) from Waziristan, in an effort to secure Kashmir, the future of which hung in the balance. The inconclusive result of the war still affects the geopolitics of both countries.
Title: Indo-Pakistani wars and conflicts
Content:  Since the Partition of British India in 1947 and subsequent creation of the dominions of India and Pakistan, the two countries have been involved in a number of wars, conflicts, and military standoffs. A long-running dispute over Kashmir and cross-border terrorism have been the predominant cause of conflict between the two states, with the exception of the Indo-Pakistani War of 1971, which occurred as a direct result of hostilities stemming from the Bangladesh Liberation War in erstwhile East Pakistan (now Bangladesh).
Title: India–Pakistan relations
Content:  Bangladesh Liberation War. Soon after gaining their independence, India and Pakistan established diplomatic relations, but the violent partition and reciprocal territorial claims quickly overshadowed their relationship. Since their independence, the two countries have fought three major wars, as well as one undeclared war, and have been involved in numerous armed skirmishes and military standoffs. The Kashmir conflict is the main centre-point of all of these conflicts with the exception of the Indo-Pakistan War of 1971 and the Bangladesh Liberation War, which resulted in the secession of East Pakistan (now Bangladesh). There have been numerous attempts to improve the relationship, notably the Shimla summit, the 
Title: Military history of India
Content:  The Republic of India has fought four wars with Pakistan and one border war with China.
Title: Frontier Force Regiment
Content:  Since independence in 1947, India and Pakistan have fought three major wars and one minor war, and have been involved in an ongoing conflict since 1984. The casus belli for most of these is the dispute between the two countries over the status of the state of Kashmir. Piffers participated in each of these conflicts with the participation in the war of 1947 by its founding formations.
Title: 2019 India–Pakistan border skirmishes
Content:  India and Pakistan have long been at odds with each other, having engaged in several wars, conflicts, and military standoffs. The roots of the continued tension are complex, but have centred mainly around the erstwhile princely state of Jammu and Kashmir. After the 1947 Partition of India, the newly formed independent states of Pakistan and India squabbled over it, which led to the Indo-Pakistani War of 1947–1948 and a subsequent sharing of the state. The settlement was non-agreeable to both the parties and since then, this had become an ongoing intractable issue leading to a war in 1965. The nations also partook in another war in 1971 which led to the formation of Bangladesh. Both countries developed nuclear weapons in the 1990s and this had a sobering effect on the next 

Question: how many wars held between india and pakistan?
Answer: four.