The best thing to do is to find the studs behind your wall. This will provide your shelf with the proper support so it won’t rip out of your wall. Smaller shelves could get away with a single hook while larger shelves may need more than one.