Don’t get tripped up by the viral "legs on the floor" riddle

Maths riddles can be hard, especially when they require actual mathematical calculations. But some hard riddles only seem hard because they’re designed to con the mind into ignoring the glaringly obvious. The solutions could be simple… but only if we allow ourselves to keep things simple. In the “legs on the floor” riddle, we’re offered a little bit of both the mathematical and the annoyingly simple. Perhaps that’s why it’s been causing such a ruckus on the internet, not to mention stirring up its share of friendly squabbling at social gatherings.
The “legs on the floor” riddle does, in fact, require you to do some actual maths. But before you even get to the maths, you’re going to have to give at least some thought to how many legs various animals possess. When you learn the solution (assuming you don’t figure it out on your own), will you realise it’s actually an easy riddle? Check it out for yourself.
What is the “legs on the floor” riddle?

The “legs on the floor” riddle is a relatively short riddle that has been overheard in many forms, but the answer is always the same. So let’s go with this one:
You walk into a room, and you see a bed. On that bed, there are two cows, four dogs, one cat, a bear, three chickens flying above the bed and a goose. How many legs are on the floor?
The hint

We already gave you the most important hint, which is that the answer is always the same, regardless of which and how many animals happen to be in the room. It may also help to know that “legs” include the feet, paws, talons and claws that are attached to them.