Yes, it counts. Any exercise counts, but the latest exercise research shows that your 20 minutes of exercise does not have to be all at once to provide most of the benefits. So do what you can now, and let improvement come with time!