Counting period days

how do u count your period days? Ive heard some count them from the 2nd day of their first period is supposed to determine when there next period starts. and some say its 32 days and some say 24 days 14 days. Im so confused. and how long do i wait before i take a pregnancy test 32 days? Sorry if its a dumb question.