The number of the days that David lived in the country of the Philistines was a full year and four months.
Why would David have been welcome in Philistia? Probably Achish and the other Philistine lords rejoiced to see the rift that existed between David and Saul.