How to remove rows that does not have a certain amount of integers?

Check out this post for a solution for this.