Weeks pregnant

Do you count the first day of your last period to determine how many weeks you are or the day after? I have seen I was 5 weeks on one app and 4 weeks on another.